<template>
	<view>
		<web-view webview-styles="webviewStyles" :src="webUrl"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webviewStyles: {
					progress: {
						color: "#FF3333"
					}
				},
				webUrl: ''
			}
		},
		methods: {

		},
		onLoad(options) {
			this.webUrl = options.url
			console.log(options.url);
		},
		onReady() {
			// #ifdef APP-PLUS
			var wv;
			var currentWebview = this.$mp.page.$getAppWebview();
			setTimeout(function() {
				wv = currentWebview.children()[0]
				console.log(wv.getStyle());
				wv.setStyle({
					scalable: true
				})
			}, 1000);
			// #endif
		}
	}
</script>

<style>

</style>
